package com.citywithincity.db;

import com.citywithincity.utils.DataUtil;

public class DbOutParam {
	
	private Object value;
	private int type;
	public DbOutParam(int type){
		this.type = type;
	}
	
	public int getType(){
		return type;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
	
	public String getString(){
		return String.valueOf(value);
	}
	
	public int getInt(){
		return DataUtil.toInt(value);
	}
	
	public double getDouble(){
		return DataUtil.toDouble(value);
	}
	
	public boolean getBoolean(){
		return DataUtil.toBoolean(value);
	}
	
	public long getLong(){
		return DataUtil.toLong(value);
	}
	
	
	
}
